package com.lyz.dataStructure.Set;/**
 * @Author:759057893@qq.com Lyz
 * @Date: ${Date} 9:05
 * @Description:
 **/

import javax.swing.text.html.HTMLDocument;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Scanner;

/**
 *@Author:759057893@qq.com Lyz
 *@Date: 2019/7/11 9:05
 *@Description:
 **/
public class HashSetDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        HashSet set = new HashSet();
        int i ;
        String str ;
        for(i=0;i<6;i++){
            str = sc.nextLine();
            set.add(str);
        }
        Iterator iterator = set.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
      /* for(Object string :set){
           System.out.println(string+" ");
       }*/

    }
}
